<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
</head>
<body>
<div id="app">
    <name v-for="item in items" v-bind:item='item'/>
</div>
<script>
    //定义一个VUE组件
    Vue.component("name", {
        props: ['item'],
        template: "<h1>{{item}}</h1>h1>"
    });
    var app = new Vue({
        el: '#app',
        data: {
            items: ["java", "linux", "python"]
        }
    });
</script>
</body>
</html>